﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Loki.UI.Win
{
	public class FormNameConverter : IValueConverter
	{
		#region IValueConverter Members

		public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			bool L_IsDirty = System.Convert.ToBoolean(value);
			if (L_IsDirty)
				return string.Format("{0} *", parameter);
			else
				return parameter;
		}

		public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			throw new NotSupportedException();
		}

		#endregion
	}
}
